package com.foreknow.view;

import com.foreknow.bean.Emp;
import com.foreknow.dao.EmpDao;
import com.foreknow.dao.impl.EmpDaoImpl;
import com.foreknow.service.impl.EmpServiceImpl;

public class Test {
    public static void main(String[] args) {
        EmpServiceImpl service = new EmpServiceImpl();
        Emp emp = new Emp();
        emp.setEname("tom");
        EmpDao dao = new EmpDaoImpl();
        service.setEmpDao(dao);
        service.save(emp);
    }
}
